home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / FPSE_src / system / win32 / win32def.h < prev   
Encoding:
C/C++ Source or Header  |  2000-01-01  |  1.5 KB  |  49 lines

  1. #ifndef _WIN32DEF_H_
  2. #define _WIN32DEF_H_
  3.  
  4. // Type of Plugins returned by *_About functions.
  5. #define FPSE_GPU    1
  6. #define FPSE_SPU    2
  7. #define FPSE_JOY0   3
  8. #define FPSE_JOY1   4
  9. #define FPSE_CDROM  5
  10.  
  11. // Bit masks for Flags field
  12. #define GPU_USE_DIB_UPDATE      0x00000001
  13. #define GPU_USE_NEW_MDEC        0x00000002
  14.  
  15. // New MDEC from GPU plugin.
  16. typedef struct {
  17.     int     (*MDEC0_Read)();
  18.     int     (*MDEC0_Write)();
  19.     int     (*MDEC1_Read)();
  20.     int     (*MDEC1_Write)();
  21.     int     (*MDEC0_DmaExec)();
  22.     int     (*MDEC1_DmaExec)();
  23. } MDEC_Export;
  24.  
  25. // Main Struct for initialization
  26. typedef struct {
  27.     UINT8        *SystemRam;   // Pointer to the PSX system ram
  28.     UINT32        Flags;       // Flags to plugins
  29.     MDEC_Export   MDecAltern;  // Use another MDEC engine
  30.     int         (*ReadCfg)();  // Read an item from INI
  31.     int         (*WriteCfg)(); // Write an item to INI
  32.     void        (*FlushRec)(); // Tell where the RAM is changed
  33.     HWND          HWnd;        // Window handle
  34.     HINSTANCE     HInstance;
  35. } FPSEWin32;
  36.  
  37. // Info about a plugin
  38. typedef struct {
  39.     UINT8   PlType;             // Plugin type: GPU, SPU or Controllers
  40.     UINT8   VerLo;              // Version High
  41.     UINT8   VerHi;              // Version Low
  42.     UINT8   TestResult;         // Returns if it'll work or not
  43.     char    Author[64];         // Name of the author
  44.     char    Name[64];           // Name of plugin
  45.     char    Description[1024];  // Description to put in the edit box
  46. } FPSEWin32About;
  47.  
  48. #endif
  49.